package com.smfx.yxt.view;

import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.smfx.yxt.common.enums.LeaveStatus;
import com.smfx.yxt.common.enums.LeaveType;
import com.smfx.yxt.model.AttachmentList;
import com.smfx.yxt.model.TeacherLeave;

public class TeacherLeaveView extends TeacherLeave {

	private static final long serialVersionUID = 3116031182669806067L;
	
	private String teacherPhone;
	
	private String headImgUrl;
	
	private String relationType;
	
	private List<AttachmentList> attachList;

	public String getTeacherPhone() {
		return teacherPhone;
	}

	public void setTeacherPhone(String teacherPhone) {
		this.teacherPhone = teacherPhone;
	}

	public String getHeadImgUrl() {
		return headImgUrl;
	}

	public void setHeadImgUrl(String headImgUrl) {
		this.headImgUrl = headImgUrl;
	}

	public String getRelationType() {
		return relationType;
	}

	public void setRelationType(String relationType) {
		this.relationType = relationType;
	}

	public List<AttachmentList> getAttachList() {
		return attachList;
	}

	public void setAttachList(List<AttachmentList> attachList) {
		this.attachList = attachList;
	}

	public String getLeaveTypeText() {
		if(StringUtils.isBlank(super.getLeaveType())) {
			return "";
		}
		return LeaveType.getDesc(super.getLeaveType());
	}

	public String getLeaveStatusText() {
		if(StringUtils.isBlank(super.getLeaveStatus())) {
			return "";
		}
		return LeaveStatus.getDesc(super.getLeaveStatus());
	}
	
}
